const seq = require('sequelize');
const db = require('../config/database');
const Model = db.defineModel('xs_admin', {
	adminname: { type: seq.STRING(20), comment: '用户名', unique: true },
	nickname: { type: seq.STRING(50), allowNull: true, comment: '管理员昵称' },
	password: { type: seq.STRING(32), comment: '管理员密码' },
	avatar: { type: seq.STRING(100), allowNull: true, comment: '管理员头像' },
	email: { type: seq.STRING(100), allowNull: true, comment: '管理员头像' },
	loginip: { type: seq.STRING(20), comment: '登录IP' },
	status: { type: seq.STRING(30), comment: '管理员状态' },
	logintime: { type: seq.BIGINT(13), comment: '登录时间' },
	createtime: { type: seq.BIGINT(13), comment: '创建时间' },
	updatetime: { type: seq.BIGINT(13), comment: '更新时间' }
});
module.exports = Model;